.PHONY:all
all:test1 test2
test1:test1.cpp
	g++ -o $@ $^ -lpthread -std=c++11
test2:test2.cpp
	g++ -o $@ $^ -lpthread -std=c++11

.PHONY:clean
clean:
	rm -rf test1 test2